package com.ibeeking.found.msg.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName SysMsgRecordDO
 * @Description 系统消息记录表
 * @Author ibeeking
 * @Date 2020-12-10 10:34
 **/
@Data
@TableName("sys_msg_record")
public class SysMsgRecordDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 消息接收方类型 1会员消息 2卖家消息 3 平台消息
     */
    @TableField(value = "receiver_type")
    private Integer receiverType;

    /**
     * 消息标题
     */
    @TableField(value = "msg_subject")
    private String msgSubject;
    /**
     * 消息请求体
     */
    @TableField(value = "msg_content")
    private String msgContent;

    /**
     * 消息发送状态，1-成功，0-失败
     */
    @TableField(value = "msg_status")
    private Integer msgStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;
}
